#include<stdio.h>
#include<conio.h>
void main()
{
	char  sex,ms  ;
	int  age;
	clrscr();

	printf("\n\n\n\t\tEnter the Marital Status: ");
	//scanf("%s", &ms);
	ms = getche();

	if(ms == 'M')

		   printf("\n\n\n\t\tDriver is insured");

	else
	{
		printf("\n\n\n\t\tEnter the age: ");
		scanf("%d", &age);
		printf("\n\n\n\t\tEnter the sex: ");
		sex = getche();
		if (sex=='M')

		{

		if(age>30)

			printf("\n\n\n\t\tDriver is insure ");

			else

			printf("\n\n\n\t\tDriver is not insured");

		 }
	   else
		 {
		   if(age>25)

				printf("\n\n\n\t\tDriver is ensured");

			else

				printf("\n\n\n\t\tDriver is not nsured");
		 }
	}

	 getch();
}


